package com.app.mapper;

import com.app.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: cn
 * @Description: TODO
 * @Date: 2025/7/12 16:35
 * @Version: 1.0
 */
@Mapper
public interface UserMapper {
    /**
     * 用id查询用户信息
     * @param id
     * @return
     */
    User getUserById(String id);

    @Select("SELECT * FROM user_info WHERE username = #{username}")
    User selectByUsername(String username);
}
